def sim7600_to_decimal(raw_data):
    parts = raw_data.split(',')
    lat = float(parts[0])
    lat_deg = int(lat // 100)
    lat_min = lat % 100
    lat_dd = lat_deg + lat_min / 60

    lon = float(parts[2])
    lon_deg = int(lon // 100)
    lon_min = lon % 100
    lon_dd = lon_deg + lon_min / 60

    hemisphere_ns = parts[1]
    hemisphere_ew = parts[3]

    if hemisphere_ns == 'S':
        lat_dd *= -1
    if hemisphere_ew == 'W':
        lon_dd *= -1

    return lat_dd, lon_dd

# 示例数据
raw_data = "+CGPSINFO:4147.993722,N,10959.718333,E,200125,064448.0,1603.5,0.0,252.3"
cleaned_data = raw_data.split(":")[1]  # 去掉+CGPSINFO:
lat, lon = sim7600_to_decimal(cleaned_data)
print(f"地图坐标：{lat}, {lon}")